﻿using Microsoft.SharePoint;
using Microsoft.SharePoint.Administration;
using System.Diagnostics;

namespace SharePointOfView.SPReporting.EventReceivers
{
    public class SPReportingFarmFeatureReceiver : SPFeatureReceiver
    {
        public override void FeatureActivated(SPFeatureReceiverProperties properties)
        {
            Debug.Write("", "SharePointOfView.SPReporting.EventReceivers.SPReportingFarmFeatureReceiver.FeatureActivated");
        }

        public override void FeatureDeactivating(SPFeatureReceiverProperties properties)
        {
            Utilities.DeactivateSPReportingFeatures();
            Debug.Write("", "SharePointOfView.SPReporting.EventReceivers.SPReportingFarmFeatureReceiver.FeatureDeactivating");
        }

        public override void FeatureInstalled(SPFeatureReceiverProperties properties)
        {
            Debug.Write("", "SharePointOfView.SPReporting.EventReceivers.SPReportingFarmFeatureReceiver.FeatureInstalled");
        }

        public override void FeatureUninstalling(SPFeatureReceiverProperties properties)
        {
            Debug.Write("", "SharePointOfView.SPReporting.EventReceivers.SPReportingFarmFeatureReceiver.FeatureUninstalling");
        }
    }
}
